/*package xxtravelconssn.oracle.apps.xxierp.travel.webui;

import java.text.SimpleDateFormat;

import java.util.Calendar;

/*public class Class2 {
    public Class2() {
    }

    public static void main(String[] args) {
        Class2 class2 = new Class2();
    }
}*/


package xxub.oracle.apps.xxierp.travel.webui;

import java.text.SimpleDateFormat;

import java.util.Calendar;

public class Class2 {
    public Class2() {
    }

    public static void main(String[] args) {
        
        String d1 = "2012-05-16";

        try {
            SimpleDateFormat dateFormat;
            java.util.Date date1;
            dateFormat = new SimpleDateFormat("yyyy-MM-dd");
            date1 = (java.util.Date)dateFormat.parse(d1);
            Calendar cal = Calendar.getInstance();
            cal.setTime(date1);
            String formats[] = 
            { "dd-MMM-yyyy", "yyyy-MM-dd", "d MMM  yyyy", "dd/MM/yyyy", 
              "EEE, MMM d,yyyy", "dd-MM-yyyy HH:mm:ss" };
            for (int i = 0; i < formats.length; i++) {
                SimpleDateFormat sdf = new SimpleDateFormat(formats[i]);
                String d = sdf.format(date1);
                System.out.println(d);
            }
        } catch (Exception e) {
            System.out.println("Exception :" + e);

        }
    }
}

